package com.example.mybatisplus.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.example.mybatisplus.model.domain.UserInfo;
import com.example.mybatisplus.mapper.UserInfoMapper;
import com.example.mybatisplus.service.UserInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * �û���Ϣ�� 服务实现类
 * </p>
 *
 * @author lxp
 * @since 2023-10-16
 */
@Mapper
@Service
public class UserInfoServiceImpl extends ServiceImpl<UserInfoMapper, UserInfo> implements UserInfoService {
    @Autowired
    private UserInfoMapper userInfoMapper;
    @Override
    public List<UserInfo> getAllStuUsers() {
        List <UserInfo> s=userInfoMapper.getAllStuUsers();
        return  s;
    }

    @Override
    public List<UserInfo> findUserByPageAndLimit(Integer page ,Integer limit) {
        List <UserInfo> s=userInfoMapper.findUserByPageAndLimit(page,limit);
        return  s;
    }

    @Override
    public Integer addUser(UserInfo users) {
        Integer s=userInfoMapper.addUser(users);
        return s;
    }

    @Override
    public Integer deleteStudents(String[] ids) {
        Integer s=userInfoMapper.deleteStudents(ids);
        return  s;
    }

    @Override
    public List<UserInfo> findStudentBy(String select) {
       List s=userInfoMapper.findStudentBy(select);
       return  s;
    }

    @Override
    public UserInfo stuLogin(String phone, String password) {
        UserInfo s=userInfoMapper.stuLogin(phone,password);
        return  s;
    }

    @Override
    public List<UserInfo> findStudentConsultInfo(String id) {
        List s=userInfoMapper.findStudentConsultInfo(id);
        return  s;
    }


}
